<%--
  Created by IntelliJ IDEA.
  User: charles
  Date: 2017/5/11
  Time: 下午9:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>HttpMessageConverter</title>
</head>
<body>
    <div id="resp"></div>
    <input type="button" onclick="req();" value="请求"/>
    <script src="assets/js/jquery.js" type="text/javascript"></script>
    <script>
        function req() {
            $.ajax({
               url: "convert",
                data: "1-charles",
                type: "POST",
                contentType:"application/x-charles",
                success:function(data){
                   $("#resp").html(data);
                }
            });
        }

    </script>
</body>
</html>
